package com.eagle.roomsearch.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * update by liangxuan
 * 2018/3/6
 * 17:04 
 * 存放每年国家法定节假日
 */
@Getter
@Setter
@ToString
public class Holiday {

    private Integer id;

    private String year;

    private String month;

    private String day;

    private String status;           // 周末休息日对应结果为1, 节假日对应的结果为 2;

    private String organizationId; //组织，公司

    private String department;    //部門

    private String userId;          //用户id

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp updateTime;


    public Holiday() {
    }

    public Holiday(String year, String month, String day, String status) {
        this.year = year;
        this.month = month;
        this.day = day;
        this.status = status;
    }
}
